package com.glela.talent.service;

import org.springframework.http.ResponseEntity;

import com.glela.talent.model.OrderVip;

public interface TalentService {
	/**
	 * 达人身份判定
	 * @param experience
	 * @return
	 */
	public int userIdentityJudge(int experience, int totalCost, int roleId) throws Exception;
	
	/**
	 * 激活码激活达人
	 * @param userId	    用户ID
	 * @param redeemCode  激活码
	 */
	public ResponseEntity<?> activationTalentByRedeemCode(Long userId,String redeemCode) throws Exception;
	
	/**
	 * 现金激活达人
	 * @param userId
	 * @throws Exception 
	 */
	/*public ResponseEntity<?> activationTalentByMoney(Long userId,Long money) throws Exception;*/
	
	/**
	 * 激活会员（校妆）
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public ResponseEntity<?> activationUserVip(Long userId,Long money) throws Exception;
	
	/*经验值修改*/
	public ResponseEntity<?> increaseTalentExperience(Long userId, int experince) throws Exception;
	
	/**
	 * 普通用户成交导师链接后赠送会员
	 * @param userId
	 * @param teacherId
	 * @return
	 */
//	public ResponseEntity<?> activationVipFromTeacherFrist(Long userId,Long teacherId) throws Exception;
	
	/**
	 * 会员成交导师的链接
	 * @param userId
	 * @param teacherId
	 * @return
	 */
//	public ResponseEntity<?> changeTeacherMemberRecommend(Long userId,Long teacherId) throws Exception;
	
	public OrderVip createOrderVip(long userId, int payType) throws Exception;
	
	/**
	 * 
	 * 推荐用户注册
	 * 
	 * @author 程哲权
	 * @date 2016-10-05
	 * @param
	 * @return
	 */
	public int recommendUserRegister(String userName, String code, String recommendFrom, String nickName,
			String picture, int sex) throws Exception;

	public void autoBackMoney(int startIndex, int pageSize);
	
}